package user;

import book.BookList;
import ioperation.BorrowOperation;
import ioperation.IOPeration;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2024-07-09
 * Time: 14:32
 */
public abstract class User {
    protected String name;
    protected IOPeration ioPeration[];

    //这里的构造方法是为了 子类当中 帮我初始化 父类的成员
    public User(String user){
        this.name = name;
    }

    public abstract int meun();

    public void doIoperation(int choice,BookList bookList){
        ioPeration[choice].work(bookList);
    }
}
